<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="-//W3C//DTD XHTML 1.1//EN" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title><%= @page_title || ARTICLE_TITLE %></title>
	<%= javascript_include_tag :defaults %>
	<%= stylesheet_link_tag 'reset', 'fonts', 'layout', 'admin' %>
</head>
<body>
	
	<div id="header">
		<ul id="menu" class="clearfix">
			<li><%= link_to "#{image_tag('16x16/blog.png', :size => '16x16')} Blog", { :controller => 'blog' } %></li>
			<li><%= link_to "#{image_tag('16x16/articles.png', :size => '16x16')} Articles", { :controller => 'article' } %></li>
			<li><%= link_to "#{image_tag('16x16/admin.png', :size => '16x16')} Admin", { :controller => 'admin' }, { :class => 'current' } %></li>
		</ul>
	</div>
	
	<div id="container" class="clearfix">
		<div id="content">
			<%= yield %>
		</div>
		
		<div id="sidebar">
			<h3>Admin Controls</h3>
			<ul>
				<li><%= link_to('Non-Existent Links', :action => 'non_existent_pages') %></li>
				<% if session[:user].can_modify_users? -%>
					<li><%= link_to('Users', :action => 'users') %></li>
				<% end -%>
				<li><%= link_to('Log Out', :controller => 'login', :action => 'logout') %></li>
			</ul>
		</div>

	</div>

</body>
</html>
